package duhosdebuggolok;

import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Point;

public class AntSmellPainter implements Painter{
	
	private AntSmell antSmell;
	
	public AntSmellPainter(AntSmell as) {
		antSmell = as;
	}
	

	
	public boolean paint(Graphics2D g){
		Point coord = antSmell.getCoord();
		//int type = antSmell.getType();
		int intensity = antSmell.getIntensity();
		Color c = new Color(255, 255, 0, intensity);
		Point p = GamePanel.calculate(coord);
		if(intensity > 0){
			GamePanel.drawHexa(g, p.x, p.y, c, true);
			return true;
		}
		return false;
	}
}